package com.mall.controller;

import com.mall.pojo.User;
import com.mall.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController {
  @Autowired
    UserService userService;
  @RequestMapping("/getList")
  public  User getList(){
    User user=  userService.getList(2);
    System.out.println(user);
    return user;
  }
}
